package kr.ac.konkuk.dblab.point.quadtree;

import java.awt.geom.Point2D;
import java.util.Set;

public class Cell extends AbstractNode {
	private Set<Point2D> points;

	public Cell(NodeType type) {
		this(type, 0);
	}
	
	public Cell(NodeType type, int degree) {
		super(type, true, degree);
	}
	
	public void points(Set<Point2D> points) {
		
	}

	public Set<Point2D> points() {
		return points;
	}
	
	public String toString() {
		StringBuilder sb = new StringBuilder(1024);
		for (int i = 0 ; i < degree() ; ++i) {
			sb.append("  ");
		}
		sb.append("Cell[type='").append(type()).append("', degree='").append(degree()).append("']").append('\n');
		
		return sb.toString();
	}
}
